@font-face {
  font-family: 'Zilla Slab';
  font-weight: 400;
  font-style: normal;
  src: url('/fonts/ZillaSlab-Regular.woff2') format('woff2'),
    url('/fonts/ZillaSlab-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Zilla Slab';
  font-weight: 700;
  font-style: normal;
  src: url('/fonts/ZillaSlab-Bold.woff2') format('woff2'),
    url('/fonts/ZillaSlab-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Zilla Slab';
  font-weight: 400;
  font-style: italic;
  src: url('/fonts/ZillaSlab-RegularItalic.woff2') format('woff2'),
    url('/fonts/ZillaSlab-RegularItalic.woff') format('woff');
}

@font-face {
  font-family: 'Zilla Slab';
  font-weight: 700;
  font-style: italic;
  src: url('/fonts/ZillaSlab-BoldItalic.woff2') format('woff2'),
    url('/fonts/ZillaSlab-BoldItalic.woff') format('woff');
}

@font-face {
  font-family: 'Open Sans';
  font-weight: 400;
  font-style: normal;
  src: url('/fonts/opensans-regular.woff2') format('woff2'),
    url('/fonts/opensans-regular.woff') format('woff');
}

@font-face {
  font-family: 'Open Sans';
  font-weight: 700;
  font-style: normal;
  src: url('/fonts/opensans-bold.woff2') format('woff2'),
    url('/fonts/opensans-bold.woff') format('woff');
}

h3 {
  font-size: 3rem;
  font-family: 'Zilla Slab', sans-serif;
}

label {
  font-size: 2rem;
  font-weight: normal;
  margin-left: 0.8rem;
}

html,
body {
  font-size: 10px;
  font-family: 'Open Sans', sans-serif;
  background-color: #305067;
  color: #fff;
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  -webkit-overflow-scrolling: touch;
}

#maindiv {
  display: block;
  text-align: center;
  width: 100%;
}

#maindiv2 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#step2 {
  display: none;
  width: 100%;
}

.backbtn {
  margin: 2rem 2rem auto;
  position: relative;
  width: 6.4rem;
  height: 6.4rem;
  background-image: url('/images/back.png');
  background-repeat: no-repeat;
  background-color: #305067;
  background-size: 6.4rem 6.4rem;
  border: none;
}

.item {
  display: block;
  margin: 1rem auto;
  width: 100%;
  max-width: 30rem;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.6rem;
}

.item.skip,
.item.connect {
  width: auto;
  background: #597285;
  padding: 1rem 4rem;
  color: #fff;
  text-align: center;
  margin-bottom: 4rem;
}

.item.ssid {
  max-width: 40rem;
  height: 5rem;
  margin-bottom: 1rem;
  text-align: left;
  background: #597285;
  padding: 0.8rem;
  color: #fff;
}

.item.ssid:hover,
.item.skip:hover,
.item.connect:hover {
  background-color: #658196;
}

.item.password {
  color: #000;
  height: 2.3rem;
  text-align: left;
  background-color: #d2d9de;
  padding: 0.5rem;
}

#wordmark {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  height: 3.6rem;
}

@media only screen and (max-width: 830px) {
  #wordmark {
    display: none;
  }
}

#wifi-icon {
  float: right;
}

#text-ssid {
  float: left;
  padding: 0.5rem 0 0 1rem;
  font-size: large;
  width: 30rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

#div-wifi-icon-2 {
  float: left;
  height: 100%;
  display: inline-block;
  position: relative;
  top: 1.2rem;
}

#img-wifi-icon-2 {
  padding-top: 2rem;
}

#network-label {
  top: 5rem;
  left: 50%;
  position: absolute;
  display: inline-block;
  height: 7rem;
  transform: translate(-50%, -50%);
}

#div-wifi-text {
  float: right;
  display: inline-block;
  vertical-align: middle;
  margin-left: 1rem;
}

:root .showpassword-checkbox {
  /* original check box is pushed outside the viewport */
  position: absolute;
  left: -1000em;
}

:root .showpassword-checkbox + label::before {
  content: '';
  display: inline-block;
  width: 3rem;
  height: 3rem;
  float: left;
  margin: 0.1rem 0;
  background: url('/images/checkbox-sprite.png') no-repeat 0 0;
  background-size: 3rem auto;
}

:root .showpassword-checkbox:checked + label::before {
  background-position: 0 -3rem;
}

:root .showpassword-checkbox:disabled + label::before {
  background-position: 0 -6rem;
}

:root .showpassword-checkbox:checked:disabled + label::before {
  background-position: 0 -9rem;
}
